package com.ruoyi.vbze.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 大田管理对象 field
 * 
 * @author vbze
 * @date 2023-02-22
 */
public class Field extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 大田id */
    private Long id;

    /** 大田编号 */
    @Excel(name = "大田编号")
    private String fieldNumber;

    /** 创建人 */
    private String creator;

    /** 中心点经度 */
    @Excel(name = "中心点经度")
    private BigDecimal longitude;

    /** 中心点纬度 */
    @Excel(name = "中心点纬度")
    private BigDecimal latitude;

    /** 大田产量 */
    @Excel(name = "大田产量")
    private Long fieldYield;

    /** 株数 */
    @Excel(name = "株数")
    private Long plantCount;

    /** 吐絮数 */
    @Excel(name = "吐絮数")
    private Integer openings;

    /** 铃数 */
    @Excel(name = "铃数")
    private Integer bolls;

    /** 籽棉重量 */
    @Excel(name = "籽棉重量")
    private BigDecimal unginnedCottonWeight;

    /** 棉花品种 */
    @Excel(name = "棉花品种")
    private String variety;

    /** 最后修改人 */
    private String lastEditor;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastEditTime;

    /** 大田备注 */
    @Excel(name = "大田备注")
    private String description;

    /** 地块管理信息 */
    private List<Block> blockList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFieldNumber(String fieldNumber) 
    {
        this.fieldNumber = fieldNumber;
    }

    public String getFieldNumber() 
    {
        return fieldNumber;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setFieldYield(Long fieldYield) 
    {
        this.fieldYield = fieldYield;
    }

    public Long getFieldYield() 
    {
        return fieldYield;
    }
    public void setPlantCount(Long plantCount) 
    {
        this.plantCount = plantCount;
    }

    public Long getPlantCount() 
    {
        return plantCount;
    }
    public void setOpenings(Integer openings) 
    {
        this.openings = openings;
    }

    public Integer getOpenings() 
    {
        return openings;
    }
    public void setBolls(Integer bolls) 
    {
        this.bolls = bolls;
    }

    public Integer getBolls() 
    {
        return bolls;
    }
    public void setUnginnedCottonWeight(BigDecimal unginnedCottonWeight) 
    {
        this.unginnedCottonWeight = unginnedCottonWeight;
    }

    public BigDecimal getUnginnedCottonWeight() 
    {
        return unginnedCottonWeight;
    }
    public void setVariety(String variety) 
    {
        this.variety = variety;
    }

    public String getVariety() 
    {
        return variety;
    }
    public void setLastEditor(String lastEditor) 
    {
        this.lastEditor = lastEditor;
    }

    public String getLastEditor() 
    {
        return lastEditor;
    }
    public void setLastEditTime(Date lastEditTime) 
    {
        this.lastEditTime = lastEditTime;
    }

    public Date getLastEditTime() 
    {
        return lastEditTime;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public List<Block> getBlockList()
    {
        return blockList;
    }

    public void setBlockList(List<Block> blockList)
    {
        this.blockList = blockList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fieldNumber", getFieldNumber())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("fieldYield", getFieldYield())
            .append("plantCount", getPlantCount())
            .append("openings", getOpenings())
            .append("bolls", getBolls())
            .append("unginnedCottonWeight", getUnginnedCottonWeight())
            .append("variety", getVariety())
            .append("lastEditor", getLastEditor())
            .append("lastEditTime", getLastEditTime())
            .append("description", getDescription())
            .append("blockList", getBlockList())
            .toString();
    }
}
